<%

/*
 * Copyright 2006 Brian Watkins
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

 String message = (String) request.getAttribute( "message" );
 if ( message == null ) message = "";

%>

<html>
<head>
<title>!!</title>
<link rel=STYLESHEET type="text/css" href="style.jsp">
<link rel="SHORTCUT ICON" href="images/favicon.ico">
<script>
var noteManagerId = 'home';

function formatDate ( year, month, date, time )
{
  return getMonth( month ) + " " + date + ", " + year;
}

function formatEventDate ( year, month, date, diw, time )
{
  var timeStr = '';
  if ( time != '' ) {
    timeStr = " -- " + time;
  }

  //return getMonth( month ) + " " + date + ", " + year + timeStr;
  return diw + timeStr;
}

</script>
<script type="text/javascript" src="include/yui_2.6/yahoo-dom-event.js"></script>
<script type="text/javascript" src="include/yui_2.6/connection-min.js"></script>
<script type="text/javascript" src="include/yui_2.6/element-beta-min.js"></script>  
<script type="text/javascript" src="include/ajax.js"></script>
<script type="text/javascript" src="include/eventScript.js"></script>
<script type="text/javascript" src="include/noteScript.js"></script>
<script type="text/javascript" src="include/tinyEditor.js"></script>

<style>
p { margin:0; pading:0; }
.noteEditor { border:none; width:100%; height:50px; }
</style>

</head>
<body bgcolor="#003366">

<center>
<div class="mainHome">

<div class="google">
<form method="GET" action="search">
<input class="googleSearch" type="text" size="40" autocomplete="off" name="q" value="<%= message %>">
</form>
</div>

<div id="events">
</div>

<div id="notes">
</div>

</div>

<div class="supplementaryNav">
<a class="supnavlink" href="javascript:addNote()">add note</a>
</div>

<jsp:include page="nav.html" />

</center>

</body>

<script>

document.forms[0].q.focus();

getEvents( 2 );

getNotes();

</script>

</html>
